<?php

namespace app\api\validate;

use think\Validate;

class LoginTokenValidate extends Validate
{
    protected $rule = [
        'phone'     => 'require|mobile',
        'code'      => 'require',
    ];

    protected $message  =   [
        'phone.require' => '请提交手机号',
        'phone.mobile'  => '手机号码不合法,请检查后输入',
        'code.require'  => '请提交验证码',
    ];
}